<template>

 <div >
    <router-view></router-view>
    <van-tabbar v-model="active">
     <van-tabbar-item icon="home-o" to="/index">首页</van-tabbar-item>
     <van-tabbar-item icon="chat-o"   badge="1"  to="/search">消息</van-tabbar-item>
     <van-tabbar-item icon="shop-collect-o" to="/good">购物车</van-tabbar-item>
      <van-tabbar-item icon="friends-o" badge="5" to="/friends">我的</van-tabbar-item>
   </van-tabbar>
   
 </div>
</template>

<script>
export default {
  data: () => {
    return {
      active: 0
    }
  },
}
</script>
<style>
</style>
